package org.dtrd.modules.shop.service;

import org.dtrd.modules.shop.entity.po.DtrdEntShcRdProduct;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import org.dtrd.modules.shop.entity.bean.ProductDetail;
import org.dtrd.modules.shop.entity.bean.ProductListInfo;
import org.dtrd.modules.shop.entity.bean.ProductListRequest;
import org.dtrd.modules.shop.entity.bean.ProductPageRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.dtrd.modules.shop.entity.request.ProductPushRequest;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author sun
 * @since 2022-07-23
 */
public interface IDtrdEntShcRdProductService extends IService<DtrdEntShcRdProduct> {

    List<ProductListInfo> getProductList(ProductListRequest request);

    IPage<ProductListInfo> pageProduct(ProductPageRequest request);

    ProductDetail getProduct(Integer dataId);

    boolean saveOrUpdateProduct(ProductDetail dto);

    boolean removeProduct(Integer dataId);

    boolean pushProductToPatient(ProductPushRequest pushRequest);
}
